package com.own.component.client.base;

import com.own.component.client.property.ClientProperty;
import lombok.Getter;

import javax.servlet.http.HttpServletRequest;

/**
 * RequestClientManager
 *
 * @author chenxueli
 * @date 2023-06-13 15:38:00
 */
@Getter
public abstract class RequestClientManager {

    protected String clientField;

    protected String defaultClient;

    public RequestClientManager(ClientProperty clientProperty) {
        this.clientField = clientProperty.getField();
        this.defaultClient = clientProperty.getDefaultClient();
    }

    /**
     * 获取客户端信息
     *
     * @param request 请求内容
     * @return 客户端信息
     */
    public abstract String client(HttpServletRequest request);

}
